<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width">
    <meta name="apple-touch-fullscreen" content="yes">
    <meta name="format-detection" content="telephone=no">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <title><?php echo $this->title ?></title>
    <base href="<?php echo RES_URL ?>"/>
    <link rel="stylesheet" href="<?php echo RES_URL?>/res/css/reset.css">

    <link rel="stylesheet" href="<?php echo RES_URL?>/res/css/font-awesome-4.7.0/css/font-awesome.min.css">
    <link rel="stylesheet" href="<?php echo RES_URL?>/res/css/font_868880_84jwkrux9er.css">

    <link href="<?php echo RES_URL?>/res/js/layui-v2.3.0/css/layui.css" rel="stylesheet">
    <script src="<?php echo RES_URL?>/res/js/layui-v2.3.0/layui.all.js"></script>
    <script src="<?php echo RES_URL?>/res/js/jquery/jquery.min.js"></script>
    <script src="<?php echo RES_URL?>/res/js/template.js"></script>
    <script>
        var resUrl = "<?php echo RES_URL?>";
    </script>
    <script src="<?php echo RES_URL?>/res/js/common.js?v=20121224.06"></script>

    <link rel="stylesheet" href="<?php echo RES_URL?>/res/css/style.css">
    <style type="text/css">
        #navs{height: 50px;float: left;margin-left: 20px;}
        .app-box{padding: 10px 8px 10px 8px;text-align: center;float: left;}
        .app-box a{display: block;margin: auto;text-align: center;width: 30px;}
        .app-box a:hover i{line-height: 30px;font-size: 24px;}
        .app-box .name{line-height: 20px;font-size: 14px;font-weight: bold;color: #4e4e4e;margin:10px; }
        .icon-box{width: 30px;height: 30px;text-align: center;}
        .icon-box i{line-height: 30px;font-size: 20px;color: #fff;}
    </style>
</head>
<body>
<div id="main">
    <?php if(empty($this->params['is_heide'])){ ?>
    <div class="header">
        <div class="max-w">
            <div class="logo" style="float: left;">
               <img src="<?php echo RES_URL?>/res/images/logo.jfif">
            </div>
            <div id="navs" >
                <?php if (Cm::$app->limitGet('/platform/order/index')){ ?>
                <div class="app-box">
                    <a href="<?php echo \yii\helpers\Url::to(['order/index'])?>" title="订单管理">
                        <div class="icon-box" style="background-color: #ff8c00;">
                            <i class="layui-icon layui-icon-list"></i> 
                        </div>
                    </a>
                </div> 
                <?php } ?> 
                            
                <?php if (Cm::$app->limitGet('/platform/user/index')){ ?>
                <div class="app-box">
                    <a href="<?php echo \yii\helpers\Url::to(['user/index'])?>" title="会员管理"> 
                        <div class="icon-box" style="background-color: #1e9fff;">
                            <i class="layui-icon layui-icon-friends"></i> 
                        </div>
                    </a> 
                </div> 
                <?php } ?>  

                <?php if (Cm::$app->limitGet('/platform/site/index')){ ?>
                <div class="app-box">
                    <a href="<?php echo \yii\helpers\Url::to(['site/index'])?>" title="站点管理">
                        <div class="icon-box" style="background-color: #90f090;">
                            <i class="layui-icon layui-icon-location"></i> 
                        </div>
                    </a>  
                </div> 
                <?php } ?>  

                <?php if (Cm::$app->limitGet('/platform/circuit/index')){ ?>
                <div class="app-box">
                    <a href="<?php echo \yii\helpers\Url::to(['circuit/index'])?>" title="线路管理">
                        <div class="icon-box" style="background-color: #00ced1;">
                            <i class="layui-icon layui-icon-flag"></i> 
                        </div>
                    </a>
                </div> 
                <?php } ?>  

                <?php if (Cm::$app->limitGet('/platform/car/index')){ ?>
                <div class="app-box">
                    <a href="<?php echo \yii\helpers\Url::to(['car/index'])?>" title="车辆管理">
                        <div class="icon-box" style="background-color: #fad400;">
                            <i class="layui-icon layui-icon-engine"></i> 
                        </div>
                    </a> 
                </div> 
                <?php } ?>
                <?php if (Cm::$app->limitGet('/platform/rebate/index')){ ?>
                    <div class="app-box">
                        <a href="<?php echo \yii\helpers\Url::to(['rebate/index'])?>">
                            <div class="icon-box" style="background-color: #1f93ff;">
                                <i class="layui-icon" >&#xe65e;</i>
                            </div>
                        </a>
                    </div>
                <?php } ?>
                <?php if (Cm::$app->limitGet('/platform/sys/index')){ ?>
                <div class="app-box">
                    <a href="<?php echo \yii\helpers\Url::to(['sys/index'])?>" title="系统配置">
                        <div class="icon-box" style="background-color: #1f93ff;">
                            <i class="layui-icon layui-icon-set-sm"></i> 
                        </div>
                    </a> 
                </div> 
                <?php } ?>  

                <?php if (Cm::$app->limitGet('/platform/sys/auth')){ ?>
                <div class="app-box">
                    <a href="<?php echo \yii\helpers\Url::to(['sys/auth'])?>" title="管理员管理">
                        <div class="icon-box" style="background-color: #90ee90;">
                            <i class="layui-icon layui-icon-user"></i> 
                        </div>
                    </a>  
                </div> 
                <?php } ?> 
            </div>
            <?php $account=Cm::$app->user->getIdentity();?>
            <div class="attr">
                <?php echo $account['username']?>
                <a href="<?php echo \yii\helpers\Url::to(['/platform/main/logout']) ?>">安全退出</a>
            </div>
        </div>
    </div>
    <div class="line40"></div>
    <div class="line20"></div>
    <?php }?>
    <div class="content max-w">
        <div class="layui-card">
            <div class="layui-card-header">

                <?php if(empty($this->params['is_heide'])){ ?>
                <div class="crumb">
                    <ul>
                        <li class="item">
                            <a href="<?php echo \yii\helpers\Url::to(['/platform/main/index'])?>">
                                首页
                            </a></li>
                        <?php foreach ($this->params['map'] as $map){ ?>
                        <li>/</li>
                        <li class="item"><a href="<?php echo $map['url']?>"><?php echo $map['title']?></a></li>
                        <?php } ?>
                    </ul>
                </div>
                <?php }?>
            </div>
            <div class="layui-card-body">
                <?= $content ?>
            </div> 
        </div>
    </div>
    <div class="line20"></div>
</div>

</body>
</html>